package com.u.social.abtest.model;

import lombok.Data;

import java.util.Random;

/**
 * @program: u-social
 * @description: 推荐配置项
 * @author: Alex Wu
 * @createDate: 2025-04-10 15:20
 **/

@Data
public class RecommendConfig {

    private Long experimentId;

    private Integer experimentType; // 1-用户级，2-请求级

    private Integer userExperimentByRemainder; // 用户级实验的取余余数

    private Integer userExperimentPercentage; // 用户级实验百分比  用户 ID Hash	hash(user_id) % 100 < 10 → 实验组A（10%）

    private Integer randomExperimentMax; // 随机数 实验百分比  随机10% 请求为实验组

    private Integer randomExperimentPercentageNumber; // randomExperimentMax: 10, randomExperimentPercentageNumber: 5, 5% 的请求为实验组A

    private Integer recallType;

    private Integer roughRankingType;

    private Integer fineRankingType;

    private Integer reRankingType;
}
